Cookie

data class Cookie(name: String, value: String, domain: String, path: String, expires: Double, size: Int, httpOnly: Boolean, secure: Boolean, session: Boolean, sameSite: CookieSameSite?, priority: CookiePriority, sameParty: Boolean, sourceScheme: CookieSourceScheme, sourcePort: Int)

Cookie object

Constructors

Cookie
Link copied to clipboard
fun Cookie(name: String, value: String, domain: String, path: String, expires: Double, size: Int, httpOnly: Boolean, secure: Boolean, session: Boolean, sameSite: CookieSameSite? = null, priority: CookiePriority, sameParty: Boolean, sourceScheme: CookieSourceScheme, sourcePort: Int)

Properties

domain
Link copied to clipboard
val domain: String
Cookie domain.
expires
Link copied to clipboard
val expires: Double
Cookie expiration date as the number of seconds since the UNIX epoch.
httpOnly
Link copied to clipboard
val httpOnly: Boolean
True if cookie is http-only.
name
Link copied to clipboard
val name: String
Cookie name.
path
Link copied to clipboard
val path: String
Cookie path.
priority
Link copied to clipboard
val priority: CookiePriority
Cookie Priority
sameParty
Link copied to clipboard
val sameParty: Boolean
True if cookie is SameParty.
sameSite
Link copied to clipboard
val sameSite: CookieSameSite? = null
Cookie SameSite type.
secure
Link copied to clipboard
val secure: Boolean
True if cookie is secure.
session
Link copied to clipboard
val session: Boolean
True in case of session cookie.
size
Link copied to clipboard
val size: Int
Cookie size.
sourcePort
Link copied to clipboard
val sourcePort: Int
Cookie source port.
sourceScheme
Link copied to clipboard
val sourceScheme: CookieSourceScheme
Cookie source scheme type.
value
Link copied to clipboard
val value: String
Cookie value.

Sources

jvm source
Link copied to clipboard